/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */

package cn.hermit.nio.http.server;

import cn.hermit.nio.http.server.builtin.JavaHttpServer;

import java.io.IOException;

/**
 * @author JackGao 高建国
 * @description //TODO 设计说明
 * @date 2/6/2017
 */
public class HttpServerFactory {

    public static HttpServer createServer(int port, boolean builtIn) throws IOException {
        if(builtIn) {
            return new JavaHttpServer(port);
        } else {
            return new HermitHttpServer(port);
        }
    }
}
